package Classwork;

public class Work02 {
    public static void main(String[] args) {
        int i,n=10,s=0;
        for (i=1;i<=n;i++){
            s+=i;}
            System.out.println("Sum="+s);
            s=0;
            System.out.print("Sum=");
            for(i=n;i>1;i--){
                s+=i;
                System.out.print(i+"+");
        }
        System.out.println(i+"="+(s+i));
    }

}
